Skip to content

Updated Edge Handling and GUI Support (Sentry) #6579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 11, 2025

Conversation

IllianiBird
Copy link
Collaborator

  • Refactored PersonViewPanel to display current and total edge without support role-specific logic.
  • Updated resetCurrentEdge logic in Person to apply universally instead of being restricted to support roles.
  • Marked processWeeklyEdgeResets in Campaign as deprecated, consolidating its usage into resetCurrentEdge.
  • Removed check that prevented non-support characters from having their current Edge levels stored on save.

Dev Notes

Historically, the expectation was that only techs could use their Edge outside of scenarios. Therefore only techs had their current Edge levels stored in the save file. Everyone else had their current Edge reset to 0 on load.

Furthermore, previously Edge and Current Edge (for techs, nobody else displayed current edge) were displayed on separate lines of the View Person pane. I condensed those into the same line so it appears as shown below.

image

- Refactored `PersonViewPanel` to display current and total edge without support role-specific logic.
- Updated `resetCurrentEdge` logic in `Person` to apply universally instead of being restricted to support roles.
- Marked `processWeeklyEdgeResets` in `Campaign` as deprecated, consolidating its usage into `resetCurrentEdge`.
- Removed check that prevented non-support characters from having their current Edge levels stored on save.
@IllianiBird IllianiBird added Bug Personnel Personnel-related Issues GUI Severity: Medium Issues described as medium severity as per the new issue form labels Apr 7, 2025
@IllianiBird IllianiBird self-assigned this Apr 7, 2025
Copy link

codecov bot commented Apr 7, 2025

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 11.41%. Comparing base (04b447a) to head (a767ba0).
Report is 29 commits behind head on master.

Files with missing lines Patch % Lines
MekHQ/src/mekhq/campaign/Campaign.java 0.00% 2 Missing ⚠️
MekHQ/src/mekhq/campaign/personnel/Person.java 0.00% 1 Missing ⚠️
MekHQ/src/mekhq/gui/view/PersonViewPanel.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6579      +/-   ##
============================================
- Coverage     11.42%   11.41%   -0.02%     
+ Complexity     6456     6451       -5     
============================================
  Files          1087     1087              
  Lines        139560   139675     +115     
  Branches      21584    21615      +31     
============================================
- Hits          15950    15947       -3     
- Misses       122015   122131     +116     
- Partials       1595     1597       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@IllianiBird IllianiBird changed the title Updated Edge Handling and GUI Support Updated Edge Handling and GUI Support (Sentry) Apr 7, 2025
@IllianiBird IllianiBird merged commit 7cb87ff into MegaMek:master Apr 11, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GUI Personnel Personnel-related Issues Severity: Medium Issues described as medium severity as per the new issue form
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants